package com.baidu.threadPoolExcutor;

public class MyThread extends Thread{
    public MyThread() {
    }

    @Override
    public void run() {
        String threadName = Thread.currentThread().getName();
        for (int i = 0; i < 5; i++) {
            System.out.println(threadName + "Thread线程输出" + i);
        }

        try {
            Thread.sleep(1000);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
